Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: XPages: how to automatically redirect to external url after timeout
Feedback Type: Question
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Functionality
Platform: ALL
Release: 8.5
Reproducible: Not applicable

Hi,

I'm currently trying to implement something that (imho) is a standard scenario in web apps:
after a user has submitted a form they should be shown some "Thank you" message. Then, after some timeout (say: 5 seconds) they shall be redirected to some fixed url which is outside of my current context (i.e.: a company home page).

I found this thread in the discussion:
http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/f847e44b47d18bba8525758a007880e8?OpenDocument

Philippe Riand suggested to use

>> context.redirect();

passing the target url.
Well, for one: the documentation doesn't mention a "redirect()" method; instead, there's only

a .redirectToPage() method

which leads to what was described by Barry McGovern in the thread's final post.

Nevertheless, I played around with

>> context.redirect("newUrl")

in various combinations (and from various events), but always receiving a "Command Not Handled Exception" from it.

I then tried to pass a new URL using

>> XSPUrl.setAddress(myUrl)

which in fact seems to exchange the URL in memory, but with no consequences... (obviously I completely misinterpreted that method)

I'm assuming that I'm just missing a small detail, as I'm sure that something like that MUST be possible.

Any hint is more than welcome!
-Lothar


Feedback number WEBB7RAEFY created by ~Justin Zekamanlen on 04/20/2009

Status: Open
Comments:

XPages: how to automatically redire... (~Justin Zekaman... 20.Apr.09)
. . JSF redirect() (~Ethan Umresaak... 20.Apr.09)
. . . . of course it worked :-) (~Justin Zekaman... 21.Apr.09)
. . . . . . inherited from java.lang.Object (~Ethan Umresaak... 21.Apr.09)
. . . . . . . . Timer... (~Justin Zekaman... 22.Apr.09)
. . . . "Of course it worked" revisited... (~Justin Zekaman... 22.Apr.09)
. . . . . . Client Side Javascript (~Arnold Nimresa... 22.Apr.09)
. . . . . . . . I have a workaround (~Ethan Umresaak... 22.Apr.09)
. . . . . . . . . . also you can use dojo.addOnLoad(fun... (~Ethan Umresaak... 22.Apr.09)
. . . . . . . . . . . . Not for Partial Refreshes (~Arnold Nimresa... 23.Apr.09)
. . . . . . . . . . . . addOnLoad()... (~Justin Zekaman... 23.Apr.09)
. . . . . . . . . . . . . . example (~Ethan Umresaak... 23.Apr.09)
. . . . . . . . . . Works perfectly for me! (~Justin Zekaman... 23.Apr.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS